﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace SimpleLiteForm.Helpers
{
    /// <summary>
    /// Process helper class.
    /// </summary>
    public static class ProcessHelper
    {
        /// <summary>
        /// Starts the web browser with the given URL.
        /// </summary>
        /// <param name="url"></param>
        public static void StartWebsite(string url)
        {
            var startInfo = new ProcessStartInfo(url);

            try
            {
                Process.Start(startInfo);
            }
            catch (Exception)
            {
                Process.Start("iexplore.exe", startInfo.FileName);
            }
        }
    }
}
